<%@ Page Title="" Language="C#" MasterPageFile="~/Provider/PersonalAccident/PersonalAccident.master" AutoEventWireup="true" CodeFile="ProviderPAOccupation.aspx.cs" Inherits="Provider_PersonalAccident_ProviderPAOccupation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="provider_inner">
        <h1>
            Add/Edit Occupation<asp:Label ID="lblProviderOccupationId" runat="server" Text="0"
                Visible="false"></asp:Label></h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Occupation Class</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlOccupationClass" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlOccupationClass_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">Class 1</asp:ListItem>
                        <asp:ListItem Value="2">Class 2</asp:ListItem>
                        <asp:ListItem Value="3">Class 3</asp:ListItem>
                        <asp:ListItem Value="4">Class 4</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvOccupationClass" runat="server" InitialValue="-1"
                        ControlToValidate="ddlOccupationClass" ErrorMessage="Select occupation class."
                        ValidationGroup="occupation"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <asp:Panel ID="pnlOccupation" runat="server" Visible="false">
                <dt>
                    <label>
                        Occupation List</label></dt>
                <dd>
                        
                        <asp:LinkButton ID="lnkbtnSelectAll" runat="server" CausesValidation="false" Text="Select all Occupation"
                            OnClick="SelectAllOccupations"></asp:LinkButton><br />
                        <asp:CheckBoxList ID="cblOccupation" runat="server">
                        </asp:CheckBoxList>
                </dd>
                </asp:Panel>
            </dl>
            <%--<dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>--%>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" 
                ImageUrl="~/Provider/images/buttons/back1.gif" onclick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" CssClass="float_btn" ValidationGroup="occupation"
                runat="server" ImageUrl="~/Provider/images/buttons/submit1.gif" 
                onclick="ibtSubmit_Click" />
            <%--<asp:ImageButton ID="btnNew" CssClass="floatnext_btn" OnClientClick="return confirm('Are you sure to clear form?');" 
                runat="server" ImageUrl="~/Provider/images/buttons/new1.gif" />
            <asp:ImageButton ID="btnDelete" CssClass="floatnext_btn" OnClientClick="return confirm('Are you sure you want to remove this record?');" 
                runat="server" ImageUrl="~/Provider/images/buttons/delete1.gif" />--%>
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg" Text=""></asp:Label>
    </div>
</asp:Content>

